<template>
  <div style="height:3000px">
    <v-card>
        <!--<v-tabs color="red">-->
        	<!--<v-tab>
        		查看统计
        	</v-tab>
        	<v-tab>
        		查看明细
        	</v-tab>
					<v-tab-item>
						<v-card-title>
							<v-row >
								<v-col cols="2">

								</v-col>
								<v-col cols="8" >
										<v-row >
											<v-col cols="9" >
												<v-text-field label="物料编号" v-model="Titemcode" placeholder="物料编号" dense outlined>
												</v-text-field>
											</v-col>
												
											
											<v-col cols="3">
												<v-btn depressed color="primary" @click="loadTDataList()" tile>查询</v-btn>
											</v-col>
										</v-row>																												
								</v-col>
								
								<v-col cols="2" align="end">
									<v-btn dark color="blue lighten-3" @click="refreshApps">
										<v-icon dark>mdi-refresh-circle</v-icon>刷新
									</v-btn>
								</v-col>
								
							</v-row>					
						</v-card-title>
						<v-alert dense text color="blue-grey"></v-alert>				
							
						<v-data-table :headers="THeaderList" :items="TDataList" small dense
							fixed-header item-key="itemcode"  class="text-no-wrap" 
							loading-text="正在加载请稍等......" :loading="HOrderLoading"
							:options.sync="HOrderOptions" :footer-props="vuetifyDefaultPage"
							:server-items-length="HOrderTotalCount">										
						</v-data-table>
						
						
						
					</v-tab-item>
					<v-tab-item>-->
						<v-card-title>
							<v-row >
								<v-col cols="2">
									<v-btn class="ml-2"  tile color="primary" @click.stop="AddDialog()">
										新增
									</v-btn>
									<v-btn class="ml-2"  tile color="error" @click.stop="deleteOrder()">
										删除
									</v-btn>
								</v-col>
								<v-col cols="8" >
										<v-row >
											<v-col cols="2" >
												<v-text-field label="单据号" v-model="Ssourceorder" placeholder="单据编号" dense outlined>
												</v-text-field>
											</v-col>
											
											<v-col cols="2">
												<v-select  v-model="flagtype" :items="typeitems"
																	item-text="name"
												          item-value="value"
													outlined dense label="单据类型">
												</v-select>
											</v-col>
												
											<v-col cols="2" >
												<v-text-field label="物料代码" v-model="Sitemcode" placeholder="物料代码" dense outlined>
												</v-text-field>
											</v-col>
											
											<v-col cols="2" >
												<v-text-field label="物料名称" v-model="Sitemname" placeholder="物料编号" dense outlined>
												</v-text-field>
											</v-col>
											
											<v-col cols="2" >
												<v-text-field label="容器编号" v-model="Scontainer" placeholder="容器编号" dense outlined>
												</v-text-field>
											</v-col>
											
											<v-col cols="2" >
												<v-text-field label="库位编号" v-model="Slocation" placeholder="库位编号" dense outlined>
												</v-text-field>
											</v-col>
											
											<v-col cols="2" >
												<v-text-field label="批次" v-model="Slots" placeholder="批次" dense outlined>
												</v-text-field>
											</v-col>
											
											<v-col cols="2">
												<v-select  v-model="flagselect" :items="flagitems"
																	item-text="name"
												          item-value="value"
													outlined dense label="完成入库标识">
												</v-select>
											</v-col>
											
											<v-col cols="2">
												<v-select  v-model="flagpass" :items="passitems"
																	item-text="name"
												          item-value="value"
													outlined dense label="过账标识">
												</v-select>
											</v-col>
											
											<v-col cols="2">
												<v-select  v-model="flagenabel" :items="enabelitems"
																	item-text="name"
												          item-value="value"
													outlined dense label="激活标识">
												</v-select>
											</v-col>
											
											<v-col cols="2">
												<v-btn depressed color="primary" @click="searchinfo()" tile>查询</v-btn>
											</v-col>
										</v-row>																												
								</v-col>
								
								<v-col cols="2" align="end">
									<v-btn dark color="blue lighten-3" @click="refreshApps">
										<v-icon dark>mdi-refresh-circle</v-icon>刷新
									</v-btn>
								</v-col>
								
							</v-row>					
						</v-card-title>
						
						<v-alert dense text color="blue-grey"></v-alert>
							
						<v-data-table :headers="HeaderList" :items="DataList" small dense
							fixed-header item-key="id"  class="text-no-wrap" show-select  v-model="selected"
							loading-text="正在加载请稍等......" :loading="DOrderLoading"
							:options.sync="DOrderOptions" :footer-props="vuetifyDefaultPage"
							:server-items-length="DOrderTotalCount">
						
							<template v-slot:item.type="{ item }">
								<v-chip v-if="item.type == 1" color="primary" small label
									
								>
									采购入库单
								</v-chip>
								<v-chip v-else-if="item.type == 2" color="primary" small label
									
								>
									生产入库单
								</v-chip>
								<v-chip v-else color="primary" small label
									
								>
									其他入库单
								</v-chip>
							</template>
							<template v-slot:item.stockedflag="{ item }">
								<v-chip v-if="item.stockedflag == 0" color="error" small label
									
								>
									未完成
								</v-chip>
								<v-chip v-else color="success" small label
									
								>
									已完成
								</v-chip>
							</template>
							<template v-slot:item.pass="{ item }">
								<v-chip v-if="item.pass == 0" color="error" small label
									
								>
									不合格
								</v-chip>
								<v-chip v-else color="success" small label
									
								>
									合格
								</v-chip>
							</template>
							<template v-slot:item.feedbackflag="{ item }">
								<v-chip v-if="item.feedbackflag == 0" color="error" small label
									
								>
									未报工
								</v-chip>
								<v-chip v-else color="success" small label
									
								>
									已报工
								</v-chip>
							</template>
							<template v-slot:item.freezeflag="{ item }">
								<v-chip v-if="item.freezeflag == 0" color="error" small label
									
								>
									未激活
								</v-chip>
								<v-chip v-else color="success" small label
									
								>
									激活
								</v-chip>
							</template>
							<template v-slot:item.outflag="{ item }">
								<v-chip v-if="item.outflag == 0" color="success" small label
									
								>
									未出库
								</v-chip>
								<v-chip v-else color="primary" small label
									
								>
									已出库
								</v-chip>
							</template>
							<template v-slot:item.actions="{ item }">
						    <v-btn tile color="warning" small @click.stop="EditDialog(item)">
									<v-icon left>
										mdi-pencil
									</v-icon>
									编辑
						    </v-btn>
						  </template>
						</v-data-table>
						
					<!--</v-tab-item>
				</v-tabs>-->
    </v-card>
		
		
		<!-- 对话框 -->
		<v-dialog v-model="AddOrEditDialog" max-width="1000px">
			<v-card>
				<v-card-title class="text-h5">
				  {{DialogHeader}}
				</v-card-title>
				<v-card-text>
				  <div class="mb-12">
				  	<v-row dense>
				  		<v-col cols="12">
				  			<v-row>
				  				<v-col cols="6">
				  					<v-text-field label="单据编号"  clearable :rules="[rules.required]"
				  						v-model="DialogBill.sourceorder">
				  					</v-text-field>
				  				</v-col>
									<v-col cols="6">
										<v-select  v-model="DialogBill.type" :items="Stype"
															item-text="name"
										          item-value="value"
											 label="单据类型">
										</v-select>
									</v-col>
									<v-col cols="6">
										<v-text-field label="项目号"  clearable :rules="[rules.required]"
											v-model="DialogBill.project">
										</v-text-field>
									</v-col>
				  				<v-col cols="6">
				  					<v-text-field label="物料代码"   clearable :rules="[rules.required]"
				  						v-model="DialogBill.itemcode">
				  					</v-text-field>
				  				</v-col>
				  				<v-col cols="6">
				  					<v-text-field label="物料编号" clearable
				  						v-model="DialogBill.itemname">
				  					</v-text-field>
				  				</v-col>
				  				<v-col cols="6">
				  					<v-text-field label="数量"  clearable :rules="[rules.true,rules.num]"
				  						v-model="DialogBill.qty">
				  					</v-text-field>
				  				</v-col>
									<v-col cols="6">
										<v-text-field label="单位"  clearable :rules="[rules.required]"
											v-model="DialogBill.unit">
										</v-text-field>
									</v-col>
				  				<v-col cols="6">
				  					<v-text-field label="托盘"  clearable :rules="[rules.required]"
				  						v-model="DialogBill.container">
				  					</v-text-field>
				  				</v-col>
									<v-col cols="6">
										<v-text-field label="仓库"  clearable :rules="[rules.required]"
											v-model="DialogBill.warehouse">
										</v-text-field>
									</v-col>
									<v-col cols="6">
										<v-text-field label="库区"  clearable :rules="[rules.required]"
											v-model="DialogBill.zonecode">
										</v-text-field>
									</v-col>
									<v-col cols="6">
										<v-text-field label="库位"  clearable :rules="[rules.required]"
											v-model="DialogBill.location">
										</v-text-field>
									</v-col>
				  				<v-col cols="6">
				  					<v-text-field label="批次" clearable
				  						v-model="DialogBill.lot">
				  					</v-text-field>
				  				</v-col>
				  				<v-col cols="6">
										<v-select  v-model="DialogBill.pass" :items="Spass"
															item-text="name"
										          item-value="value"
											 label="是否合格">
										</v-select>
				  				</v-col>
									<v-col cols="6">
										<v-select  v-model="DialogBill.stockedflag" :items="Sstockedflag"
															item-text="name"
										          item-value="value"
											 label="是否完成">
										</v-select>
									</v-col>
									<v-col cols="6">
										<v-select  v-model="DialogBill.feedbackflag" :items="Sfeedbackflag"
															item-text="name"
										          item-value="value"
											 label="是否报工">
										</v-select>
									</v-col>
									<v-col cols="6">
										<v-select  v-model="DialogBill.freezeflag" :items="Sfreezeflag"
															item-text="name"
										          item-value="value"
											 label="是否激活">
										</v-select>
									</v-col>
									<v-col cols="6">
										<v-select  v-model="DialogBill.outflag" :items="Soutflag"
															item-text="name"
										          item-value="value"
											 label="是否出库">
										</v-select>
									</v-col>
				  			</v-row>
				  		</v-col>
				  	</v-row>
				  </div>
				</v-card-text>
				<v-card-actions>
				  <v-spacer></v-spacer>
					
				  <v-btn
				    color="green darken-1"
				    text
				    @click="confirmOrder()"
				  >
				    提交
				  </v-btn>
					
				  <v-btn
				    color="green darken-1"
				    text
				    @click="AddOrEditDialog = false"
				  >
				    关闭
				  </v-btn>
				</v-card-actions>
			</v-card>
		</v-dialog>
		
		<v-dialog v-model="deldialog" class="text-center" width="300px">
			<v-card >
						<v-card-title>提示</v-card-title>
						<v-card-text>
							您确定要删除吗？
						</v-card-text>
						<v-card-actions>
							<v-col cols="8">
								<v-btn @click="SureDelete()" color="error">确定</v-btn>
							</v-col>
							<v-col cols="4">
								<v-btn @click="deldialog = false">取消</v-btn>
							</v-col>						
						</v-card-actions>
			</v-card>
		</v-dialog>
		
  </div>
</template>

<script>
	export default {
		name: 'wms_summary_now',
		data:() => ({
			Ssourceorder:'',
			Sitemcode:'',
			Sitemname:'',
			Scontainer:'',
			Slocation:'',
			Slots:'',
			Titemcode:'',
			flagselect:-1,
			flagtype:-1,
			flagpass:-1,
			flagenabel:-1,
			flagitems:[
				{name: '所有', value:-1},
				{name: '未完成', value:0},
				{name: '已完成', value:1},
			],
			typeitems:[
				{name: '所有', value:-1},
				{name: '采购入库单', value:1},
				{name: '生产入库单', value:2},
				{name: '其他入库单', value:3},
			],
			passitems:[
				{name: '所有', value:-1},
				{name: '未过账', value:0},
				{name: '已过账', value:1},
			],
			enabelitems:[
				{name: '所有', value:-1},
				{name: '未激活', value:0},
				{name: '已激活', value:1},
			],
			Stype:[
				{name: '采购入库单', value:1},
				{name: '生产入库单', value:2},
				{name: '其他入库单', value:3},
			],
			Sstockedflag:[
				{name: '未完成', value:0},
				{name: '已完成', value:1},
			],			
			Spass:[
				{name: '不合格', value:0},
				{name: '合格', value:1},
			],
			Sfeedbackflag:[
				{name: '未报工', value:0},
				{name: '已报工', value:1},
			],
			Sfreezeflag:[
				{name: '未激活', value:0},
				{name: '已激活', value:1},
			],
			Soutflag:[
				{name: '未出库', value:0},
				{name: '已出库', value:1},
			],
			AddOrEditDialog: false,
			deldialog:false,
			delitem:"",
			HeaderList: [
				{ text: '入库单号',value: 'sourceorder'},
				{ text: '单据类型', value: 'type' },
				{ text: '项目号', value: 'project' },
				{ text: '物料编码', value: 'itemcode' },
				{ text: '物料名', value: 'itemname' },
				{ text: '规格', value: 'spec' },
				{ text: '现存数量', value: 'qty' },
				{ text: '单位', value: 'unit' },
				{ text: '供应商', value: 'companycode' },
				{ text: '托盘号', value: 'container' },
				{ text: '仓库', value: 'warehouse' },
				{ text: '库区', value: 'zonecode' },
				{ text: '库位', value: 'location' },
				{ text: '批次', value: 'lot' },
				{ text: '是否合格', value: 'pass' },
				{ text: '是否完成', value: 'stockedflag' },
				{ text: '完成时间', value: 'stockedtime' },
				{ text: '是否报工', value: 'feedbackflag' },		
				{ text: '报工时间', value: 'feedbacktime' },
				{ text: '是否激活', value: 'freezeflag' },	
				{ text: '是否出库', value: 'outflag' },	
				{ text: '创建人', value: 'created_byname' },
				{ text: '创建时间', value: 'created_time' },
				{ text: '编辑人', value: 'updated_byname' },
				{ text: '编辑时间', value: 'updated_time' },
				{ text: '操作', value: 'actions' },
			],
			THeaderList: [
				{ text: '物料编码', value: 'itemcode' },
				{ text: '物料名', value: 'itemname' },
				{ text: '总计', value: 'qty' },
			],
			DialogBill:{
				id:'',
				dbid:'',
				isavailable:true,
				created_by:'',
				created_byname:'',
				updated_by:'',
				updated_byname:'',
				company:'',
				created_time:'',
				updated_time:'',
				accountingbookcode:'',
				
				sourceorder:'',
				type:1,
				project:'',
				itemcode:"",
				itemname:"",
				qty:"",
				unit:"",
				container:"",
				warehouse:"",
				zonecode:"",
				location:"",
				lot:"",
				pass:1,
				stockedflag:1,
				stockedtime:"",
				feedbackflag:1,
				feedbacktime:"",
				freezeflag:1,
				outflag:1,
			},
			DataList: [],
			TDataList: [],
			selected:[],
			checkList:[],
			vuetifyDefaultPage: {
				'items-per-page-text': '每页个数',
				'items-per-page-options': [10, 20, 50, 100]
			},
			HOrderLoading: true,
			HOrderTotalCount: 0,
			HOrderOptions: {
				//页数
				page: 1,
				//每页行数
				itemsPerPage: 10
			},
			DOrderLoading: true,
			DOrderTotalCount: 0,
			DOrderOptions: {
				//页数
				page: 1,
				//每页行数
				itemsPerPage: 10
			},
			DialogHeader:"",
			rules: {
			    required: value => !!value || '值不能为空！',
			    counter: value => value.length <= 20 || '字符长度不能超过20!',
					num: value => value > 0 || '值要大于0！',
					true: value => {
						const pattern = /^[0-9]*$/
						return pattern.test(value) || '请输入合法数字!'
					}
			 }
		}),
		created() {
			//获取库存信息
			this.loadDataList();
			//获取统计信息
			this.loadTDataList();			
		},
		watch: {
			HOrderOptions: {
				handler() {
					this.loadTDataList();
				},
				deep: true
			},
			DOrderOptions: {
				handler() {
					this.loadDataList();
				},
				deep: true
			},
		},
		methods: {
		//搜索
  		search() {
  			this.loadDataList();
  		},
  		//加载单据信息
  		loadDataList() {
  			var that = this;
				that.DOrderLoading = true;
				that.DataList = [];
  			this.$httpRequest({
  				url: `WMS/WmsBillInventory/GetBillListByPage?pageIndex=${this.DOrderOptions.page}&pageSize=${this.DOrderOptions.itemsPerPage}`,
  				method: 'get'
  			}).then(function(response) {
  				if (response.status == 1) {
  					that.DataList = response.data.result;
						that.DOrderTotalCount = response.data.pagination.totalRecords;
						that.DOrderLoading = false;
  				} else {
  					that.$message.error(response.info);
  				}
  			})
  		},
  		// 打开编辑对话框
  		EditDialog(item) {
				this.DialogBill.id = item.id;
				this.DialogBill.dbid = item.dbid;
				this.DialogBill.isavailable = item.isavailable;
				this.DialogBill.created_by = item.created_by;
				this.DialogBill.created_byname = item.created_byname;
				this.DialogBill.updated_by = item.updated_by;
				this.DialogBill.updated_byname = item.updated_byname;
				this.DialogBill.company = item.company;
				this.DialogBill.created_time = item.created_time;
				this.DialogBill.updated_time = item.updated_time;
				this.DialogBill.accountingbookcode = item.accountingbookcode;
				this.DialogBill.sourceorder = item.sourceorder;
				this.DialogBill.type = item.type;
				this.DialogBill.project = item.project;
				this.DialogBill.itemcode = item.itemcode;
				this.DialogBill.itemname = item.itemname;
				this.DialogBill.qty = item.qty;
				this.DialogBill.unit = item.unit;
				this.DialogBill.container = item.container;
				this.DialogBill.warehouse = item.warehouse;
				this.DialogBill.zonecode = item.zonecode;
				this.DialogBill.location = item.location;
				this.DialogBill.lot = item.lot;
				this.DialogBill.pass = item.pass;
				this.DialogBill.stockedflag = item.stockedflag;
				this.DialogBill.stockedtime = item.stockedtime;
				this.DialogBill.feedbackflag = item.feedbackflag;
				this.DialogBill.feedbacktime = item.feedbacktime;
				this.DialogBill.freezeflag = item.freezeflag;
				this.DialogBill.outflag = item.outflag;
				this.DialogHeader = "编辑库存";
				this.AddOrEditDialog = true;
  		},
			// 打开新增对话框
			AddDialog() {
				this.DialogBill.sourceorder = "";
				this.DialogBill.type = 1;
				this.DialogBill.project = "";
				this.DialogBill.itemcode = "";
				this.DialogBill.itemname = "";
				this.DialogBill.qty = 0;
				this.DialogBill.unit = "";
				this.DialogBill.container = "";
				this.DialogBill.warehouse = "";
				this.DialogBill.zonecode = "";
				this.DialogBill.location = "";
				this.DialogBill.lot = "";
				this.DialogBill.pass = 1;
				this.DialogBill.stockedflag = 1;
				this.DialogBill.feedbackflag = 1;
				this.DialogBill.freezeflag = 1;
				this.DialogBill.outflag = 1;
				this.DialogHeader = "新增库存";
				this.AddOrEditDialog = true;
			},
			//分页跳转
			goPage(){
				this.loadDataList();
				that.pageModel.loading = true;
			},
			//提交
			confirmOrder() {
				var that = this;
				if(that.DialogHeader == "新增库存")
				{
					this.$httpRequest({
						url: `/WMS/WmsBillInventory/Add`,
						method: 'post',
						data:{					
								sourceorder : that.DialogBill.sourceorder,
								type : that.DialogBill.type,
								project : that.DialogBill.project,
								itemcode : that.DialogBill.itemcode,
								itemname : that.DialogBill.itemname,
								qty : that.DialogBill.qty,
								unit : that.DialogBill.unit,
								container : that.DialogBill.container,
								warehouse : that.DialogBill.warehouse,
								zonecode : that.DialogBill.zonecode,
								location : that.DialogBill.location,
								lot : that.DialogBill.lot,
								pass : that.DialogBill.pass,
								stockedflag : that.DialogBill.stockedflag,
								feedbackflag : that.DialogBill.feedbackflag,
								freezeflag : that.DialogBill.freezeflag,		
								outflag : that.DialogBill.outflag,
						}
					}).then(function(response) {
					
						if (response.status == 1) {
							that.loadDataList();
							that.AddOrEditDialog = false;
							that.$message.success("新增库存成功！");
						} else {
							that.$message.error(response.info);
						}
					})
				}
				else
				{
					this.$httpRequest({
						url: `/WMS/WmsBillInventory/Update`,
						method: 'post',
						data:{		
								id : that.DialogBill.id,
								dbid : that.DialogBill.dbid,
								isavailable : that.DialogBill.isavailable,
								created_by : that.DialogBill.created_by,
								created_byname : that.DialogBill.created_byname,
								updated_by : that.DialogBill.updated_by,
								updated_byname : that.DialogBill.updated_byname,
								company : that.DialogBill.company,
								created_time : that.DialogBill.created_time,
								updated_time : that.DialogBill.updated_time,
								accountingbookcode : that.DialogBill.accountingbookcode,
								sourceorder : that.DialogBill.sourceorder,
								type : that.DialogBill.type,
								project : that.DialogBill.project,
								itemcode : that.DialogBill.itemcode,
								itemname : that.DialogBill.itemname,
								qty : that.DialogBill.qty,
								unit : that.DialogBill.unit,
								container : that.DialogBill.container,
								warehouse : that.DialogBill.warehouse,
								zonecode : that.DialogBill.zonecode,
								location : that.DialogBill.location,
								lot : that.DialogBill.lot,
								pass : that.DialogBill.pass,
								stockedflag : that.DialogBill.stockedflag,
								feedbackflag : that.DialogBill.feedbackflag,
								freezeflag : that.DialogBill.freezeflag,	
								stockedtime : that.DialogBill.stockedtime,
								feedbacktime : that.DialogBill.feedbacktime,
								outflag : that.DialogBill.outflag
						}
					}).then(function(response) {
					
						if (response.status == 1) {
							that.loadDataList();
							that.AddOrEditDialog = false;
							that.$message.success("编辑库存成功！");
						} else {
							that.$message.error(response.info);
						}
					})
				}
				
			},
			//加载统计信息
			loadTDataList() {
				var that = this;
				that.HOrderLoading = true;
				that.TDataList = [];
				this.$httpRequest({
					url: `WMS/WmsBillInventory/GetAll?Sitemcode=${this.Titemcode}&pageIndex=${this.HOrderOptions.page}&pageSize=${this.HOrderOptions.itemsPerPage}`,					
					method: 'get'
				}).then(function(response) {
					if (response.status == 1) {
						that.TDataList = response.data.result;
						that.HOrderTotalCount = response.data.pagination.totalRecords;
						that.HOrderLoading = false;
					} else {
						that.$message.error(response.info);
					}
				})
			},
			//分页跳转
			TgoPage(){
				this.loadTDataList();
				that.TpageModel.loading = true;
			},
			refreshApps(){
				this.Ssourceorder = "";
				this.flagtype = -1;
				this.Sitemcode = "";
				this.Sitemname = "";
				this.Slocation = "";
				this.Scontainer = "";
				this.Slots = "";
				this.Titemcode = "";
				this.flagselect = -1;
				this.flagpass = -1;
				this.flagenabel = -1;
				this.selected = [];
				this.HOrderOptions.page = 1;
				this.DOrderOptions.page = 1;
				this.loadDataList();
				this.loadTDataList();
			},
			//取消 取消领料单
			cancelOrder() {
				this.AddOrEditDialog = false;
			},
			deleteOrder(){
				this.deldialog = true;			
			},
			SureDelete()
			{
				var that = this;
				for(var i=0; i<that.selected.length; i++)
				{
					this.$httpRequest({
						url: `/WMS/WmsBillInventory/Delete/${that.selected[i].id}`,
						method: 'delete'											
					}).then(function(response) {					
						if (response.status == 1) {							
							that.$message.success("删除成功！");							
						} else {
							that.$message.error("删除失败！");
						}
					})
				}
				this.loadDataList();
				this.deldialog = false;
				this.refreshApps();
			},
			searchinfo(){
				var that = this;
				that.DOrderLoading = true;
				that.DataList = [];
				this.$httpRequest({
					url: `WMS/WmsBillInventory/Search?Ssourceorder=${this.Ssourceorder}&Stype=${this.flagtype}&Sitemcode=${this.Sitemcode}&Sitemname=${this.Sitemname}&Scontainer=${this.Scontainer}&Slocation=${this.Slocation}&Slots=${this.Slots}&Sflag=${this.flagselect}&Spass=${this.flagpass}&Senabel=${this.flagenabel}&pageIndex=${this.DOrderOptions.page}&pageSize=${this.DOrderOptions.itemsPerPage}`,
					method: 'get'
				}).then(function(response) {
					if (response.status == 1) {
						that.DataList = response.data.result;
						that.DOrderTotalCount = response.data.pagination.totalRecords;
						that.DOrderLoading = false;
					} else {
						that.$message.error(response.info);
					}
				})
			},
		}
		
		
	}
</script>
